import request from '../server'

export const apiGetArticleList = () => {
    return request.get('/api/getArticleList')
}


export const apiGetDetail = (id) => {
    return request.get('/api/getArticleDetail', {
        params: { id }
    })
}

export const apiAddViews = (id) => {
    return request.post('/api/addViewsForArticle', 
        {id}
    )
}
export const apiGetHotArticle = () => { 
    return request.get('/api/getHotArticle')
}